

object MemoryInst {

  def main(args: Array[String]) {
	  
    if(args.length !=3){
      println("Usage: scala MemoryInst [source file to instrument] -o [output file]")
      exit()
    }
    
    val input_src = args(0)
    val option    = args(1)
    val output_src= args(2)
    
    
    
    if(option!="-o"){
      println("Mauvaise option choisie!")
      exit()
    }
    
    var preprocessor  = new memoryinst.preprocessors.CoreProcessor(input_src,output_src)
    preprocessor.processInput()
    preprocessor.generateOuput()
  }
}